package edu.xlh.travel.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="t_scenic")
@Data
public class Scenic implements Serializable{

	@Id
	private String id;//id


	
	private String img;//景点图片
	private String name;//景点名称
	private Double price;//价格
	private String comment;//详情
	private Integer start;//评价
	private String contry;//国家地区
	private Integer stock;//库存
    private String miaoshu;//描述
	/*@DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")*/
	@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss",timezone="GMT+8")
	private Date  startDate; //出发时间
	private String delFlag;//删除标志
}
